/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.dcpApplication.question3.lspApp.lspCorrection.animalConfig;

import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.annotation.Bean;
import za.ac.cput.dcpApplication.question3.lspApp.lspCorrection.Animal;
import za.ac.cput.dcpApplication.question3.lspApp.lspCorrection.animalImpl.Fish;
import za.ac.cput.dcpApplication.question3.lspApp.lspCorrection.animalImpl.Frog;
import za.ac.cput.dcpApplication.question3.lspApp.lspCorrection.animalImpl.FrogImproved;

/**
 *
 * @author spheshie
 */

@Configurable
public class AnimalConfig {
    
    @Bean(name = "oldfrog")
    public Animal frog(){
        return new Frog();
    }
    
    @Bean(name = "fish")
    public Animal fish(){
        return new Fish();
    }
    
    @Bean(name = "newfrog")
    public Animal frogImproved(){
        return new FrogImproved();
    }
}
